﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Compiler
{
    public static class Util
    {
        //public static HashSet<List<Symbol>> Concat(List<Symbol> chain, HashSet<Symbol> set)
        //{
        //    var final = new HashSet<List<Symbol>>();
        //    foreach (var symbol in set)
        //    {
        //        var extChain = new List<Symbol>(chain);
        //        extChain.Add(symbol);
        //        final.Add(extChain);
        //    }
        //    //final.Reverse();
        //    return final;
        //}

        public static List<Symbol> Concat(List<Symbol> chain, Symbol symbol)
        {
            var final = new List<Symbol>(chain);
            final.Add(symbol);
            return final;
        }

        //public static T GetOrC
    }
}
